import * as types from '../mutation-types.js';
export const ADD = function ( { commit }, num) {
    
    return new Promise((resolve, reject) => {
        setTimeout(() => {
          commit(types.ADD, num*2)
          resolve()
        }, 1000)
      })
}
export const DEL = function ( { commit }, num) {
    commit(types.DEL, num*2)
}